package com.atguigu.structure.adapter.objectadapter;

public class Phone {
    public void charging(Voltage5V voltage5V){
        int output5V = voltage5V.output5V();
        if(output5V==5){
            System.out.println("电压输出为5V,可以充电");
        }
    }
}
